API Documentation
MaterialManager.h
1 // MaterialManager.h
3 //
5 
6 namespace nkAstraeus
7 {
13  class MaterialManager final : public nkCommon::SingletonClass<MaterialManager>
14  {
15  public :
16 
41  Material* createOrRetrieve (const std::string_view& name, MATERIAL_TYPE type) ;
48  Material* get (const std::string_view& name) ;
57  Material* getByIndex (unsigned int id) ;
64  void rename (const std::string_view& currentName, const std::string_view& newName) ;
70  void erase (const std::string_view& name) ;
71  } ;
72 }
nkAstraeus::MaterialManager::getByIndex
Material * getByIndex(unsigned int id)
nkAstraeus::MaterialManager
Manages the materials available in the component.
Definition: MaterialManager.h:14
nkAstraeus::MATERIAL_TYPE
MATERIAL_TYPE
Lists all materials supported.
Definition: MaterialType.h:12
nkAstraeus::MaterialManager::createOrRetrieve
Material * createOrRetrieve(const std::string_view &name, MATERIAL_TYPE type)
nkAstraeus::MaterialManager::erase
void erase(const std::string_view &name)
nkAstraeus::MaterialManager::rename
void rename(const std::string_view &currentName, const std::string_view &newName)
nkAstraeus
Encompasses all API of component NilkinsAstraeus.
Definition: Engine.h:7
nkAstraeus::Material
Base class for all materials in the component.
Definition: Material.h:16
nkAstraeus::MaterialManager::get
Material * get(const std::string_view &name)